package com.two.lbms.dao;

import com.two.lbms.base.BaseMapper;
import com.two.lbms.hjx.dto.BookDTO;
import com.two.lbms.vo.BookInfo;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author hjx
 * @version V1.0
 * @Date 2023/7/28 20:21
 */

@Mapper
public interface BookInfoMapper extends BaseMapper<BookInfo, Integer> {

    Integer deleteByPrimaryKey(Integer id);

    int insert(BookInfo record);

    Integer insertSelective(BookInfo record);

    BookInfo selectByPrimaryKey(Integer id);

    Integer updateByPrimaryKeySelective(BookInfo record);

    int updateByPrimaryKey(BookInfo record);

    Integer updateBatch(List<BookInfo> list);

    BookInfo selectByPrimaryName(String bookName);

    BookDTO selectByBookId(Integer id);

    Integer selectTypeCount();
}